package com.niit;

import com.niit.entity.Student;
import com.niit.mapper.StudentMapper;
import com.niit.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.sql.SQLException;

public class Test_Provider {

    public static void main(String[] args) throws SQLException {

        SqlSession session = MybatisUtil.getSession();
        System.out.println("-------------------------------------------------------------------------------------------");
        System.out.println("数据库产品名："+session.getConnection().getMetaData().getDatabaseProductName());
        System.out.println("数据库版本号："+session.getConnection().getMetaData().getDatabaseProductVersion());
        System.out.println("-------------------------------------------------------------------------------------------");
    }
}
